import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-08
 * Time: 14:49
 */
public class Test {
    //java的方法重载
    public static int add( int a , int b){
        return a + b;
    }
    public static double add( double a , double b){
        return a + b;
    }
    public static int add( int a , int b , int c){
        return a + b + c;
    }
    public static int add( int a , int b ,  short c){
        return a + b + c;
    }
    public static int add( int a , short c , int b){
        return a + b + c;
    }
    public static void main3(String[] args) {
        double ret = add(5.0, 6.1);
        System.out.println(ret);
    }
    //java中方法(函数)的调用
    public static boolean isLeaperYear( int n){
        if( n % 4 == 0 && n % 100 != 0 || n % 400 == 0){
            return true;
        }else{
            return false;
        }
    }
    public static void main2(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        boolean ret = isLeaperYear(n);
        if( ret == true){
            System.out.println("是闰年");
        }else{
            System.out.println("不是闰年");
        }
    }
    //猜数字
    public static void main1(String[] args) {
        Random ran = new Random();
        Scanner input = new Scanner(System.in);
        int r = ran.nextInt(100);
        while(true){
            System.out.println("输入一个数字：");
            int n = input.nextInt();
            if( n == r){
                System.out.println("输入对了");
                break;
            }else if( n > r ){
                System.out.println("输入大了");
            }else{
                System.out.println("输入小了");
            }
        }
    }
}
